<?php

namespace app\common\validate;

use app\common\validate\BaseValidate;

class UserValidate extends BaseValidate
{
    protected $rule = [
        "tel|标题" => 'require|unique:user',
        "nick|昵称" => 'require',
        "password|密码" => 'require',
    ];
    
    protected $message = [
    ];
    
    
    protected $scene = [
        "add" => ["nick"],
        "edit" => ["id","nick"],
    ];
}